<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>

    <head>
        <title>Web movie for CS4280</title>
        <script type="text/javascript">

            function doAuthenticate() {
                document.getElementById("frmLogin").todo.value = "doauthenticate";

                document.getElementById("frmLogin").submit();

            }

        </script>
    </head>
    <body>
        <h1>Log in to webmovie</h1>

        <form name ="frmLogin" id ="frmLogin" action='j_security_check' method='POST'>

            <fieldset>
                <input type="hidden" name="todo" id="todo" value="" />
                <label for="login-text">Username</label>
                <input type="text" name='j_username' id='j_username' />
                <label for="login-text">Password</label>
                <input type="password" name='j_password' id='j_password'/>
            </fieldset>
            
            <input type="submit" name="submit" value="Login" />
            <input type="submit" name="btnSubmit" value="Register" onclick="doRegister();"/>
        </form>
    </body>

</html>
